package routes

import (
	"goserver/handlers"
	"goserver/models"

	"go.mongodb.org/mongo-driver/mongo"
)

func SetupPersonRoutes(db *mongo.Database, collectionName string) {
	personRepo := models.NewPersonRepository(db, collectionName)
	personHandler := handlers.NewPersonHandler(personRepo)
	setupEntityRoutes[models.User]("/person/add", personHandler.AddPerson)
}
